package com.lollipop.ucenter.rpc.service;

import com.lollipop.common.service.CrudServiceImpl;
import com.lollipop.ucenter.rpc.api.ResourceService;
import com.lollipop.ucenter.rpc.model.Resource;
import com.lollipop.ucenter.rpc.repository.ResourceDao;
import org.springframework.stereotype.Service;

import java.util.Set;


@Service("resourceService")
public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, Resource> implements ResourceService {

    @Override
    public Set<String> findResourcesByRoleId(String roleId) {
        return dao.findResourcesByRoleId(roleId);
    }
}
